/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package mnstudent.datatranferobject;

import java.sql.Date;
import java.util.ArrayList;
import java.util.Objects;

/**
 *
 * @author 11520_000
 */
public class StudentDisplayDTO {
    
    private String m_StudentID;
    private String m_FullName;
    private String m_Gender;
    private Date   m_DateOfBirth;
    private String m_District;
    private String m_Province;
    private String m_MajorID;
    private String m_NameOfMajor;
    private int    m_AdmissionYear;
    private String m_StateID;
    private String m_NameOfStateID;
    private ArrayList<PriorityObjectDTO> m_ListPriorityObject;
    
    public String getGender() {
        return m_Gender;
    }

    public void setGender(String m_Gender) {
        this.m_Gender = m_Gender;
    }

    public Date getDateOfBirth() {
        return m_DateOfBirth;
    }

    public void setDateOfBirth(Date m_DateOfBirth) {
        this.m_DateOfBirth = m_DateOfBirth;
    }

    public String getDistrict() {
        return m_District;
    }

    public void setDistrict(String m_District) {
        this.m_District = m_District;
    }

    public String getProvince() {
        return m_Province;
    }

    public void setProvince(String m_Province) {
        this.m_Province = m_Province;
    }

    public int getAdmissionYear() {
        return m_AdmissionYear;
    }

    public void setAdmissionYear(int m_AdmissionYear) {
        this.m_AdmissionYear = m_AdmissionYear;
    }

    public String getStateID() {
        return m_StateID;
    }

    public void setStateID(String m_StateID) {
        this.m_StateID = m_StateID;
    }

    public String getNameOfStateID() {
        return m_NameOfStateID;
    }

    public void setNameOfStateID(String m_NameOfStateID) {
        this.m_NameOfStateID = m_NameOfStateID;
    }

    public ArrayList<PriorityObjectDTO> getListPriorityObject() {
        return m_ListPriorityObject;
    }

    public void setListPriorityObject(ArrayList<PriorityObjectDTO> m_ListPriorityObject) {
        this.m_ListPriorityObject = m_ListPriorityObject;
    }

    public String getStudentID() {
        return m_StudentID;
    }

    public void setStudentID(String m_StudentID) {
        this.m_StudentID = m_StudentID;
    }

    public String getFullName() {
        return m_FullName;
    }

    public void setFullName(String m_FullName) {
        this.m_FullName = m_FullName;
    }

    public String getMajorID() {
        return m_MajorID;
    }

    public void setMajorID(String m_MajorID) {
        this.m_MajorID = m_MajorID;
    }

    public String getNameOfMajor() {
        return m_NameOfMajor;
    }

    public void setNameOfMajor(String m_NameOfMajor) {
        this.m_NameOfMajor = m_NameOfMajor;
    }

    public StudentDisplayDTO() {
    }

    public StudentDisplayDTO(String m_StudentID, String m_FullName, String m_Gender, Date m_DateOfBirth, String m_District, String m_Province, String m_MajorID, String m_NameOfMajor, int m_AdmissionYear, String m_StateID, String m_NameOfStateID) {
        this.m_StudentID = m_StudentID;
        this.m_FullName = m_FullName;
        this.m_Gender = m_Gender;
        this.m_DateOfBirth = m_DateOfBirth;
        this.m_District = m_District;
        this.m_Province = m_Province;
        this.m_MajorID = m_MajorID;
        this.m_NameOfMajor = m_NameOfMajor;
        this.m_AdmissionYear = m_AdmissionYear;
        this.m_StateID = m_StateID;
        this.m_NameOfStateID = m_NameOfStateID;
    }

    public StudentDisplayDTO(String m_StudentID, String m_FullName, String m_Gender, Date m_DateOfBirth, String m_District, String m_Province, String m_MajorID, String m_NameOfMajor, int m_AdmissionYear, String m_StateID, String m_NameOfStateID, ArrayList<PriorityObjectDTO> m_ListPriorityObject) {
        this.m_StudentID = m_StudentID;
        this.m_FullName = m_FullName;
        this.m_Gender = m_Gender;
        this.m_DateOfBirth = m_DateOfBirth;
        this.m_District = m_District;
        this.m_Province = m_Province;
        this.m_MajorID = m_MajorID;
        this.m_NameOfMajor = m_NameOfMajor;
        this.m_AdmissionYear = m_AdmissionYear;
        this.m_StateID = m_StateID;
        this.m_NameOfStateID = m_NameOfStateID;
        this.m_ListPriorityObject = m_ListPriorityObject;
    }


    @Override
    public int hashCode() {
        int hash = 7;
        hash = 37 * hash + Objects.hashCode(this.m_StudentID);
        hash = 37 * hash + Objects.hashCode(this.m_FullName);
        hash = 37 * hash + Objects.hashCode(this.m_MajorID);
        hash = 37 * hash + Objects.hashCode(this.m_NameOfMajor);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final StudentDisplayDTO other = (StudentDisplayDTO) obj;
        if (!Objects.equals(this.m_StudentID, other.m_StudentID)) {
            return false;
        }
        if (!Objects.equals(this.m_FullName, other.m_FullName)) {
            return false;
        }
        if (!Objects.equals(this.m_MajorID, other.m_MajorID)) {
            return false;
        }
        if (!Objects.equals(this.m_NameOfMajor, other.m_NameOfMajor)) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return m_FullName;
    }

    
    
}
